<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file='../share_header.jsp' %>
<div id="content-header">
    <h1>用户批量导入</h1>
</div>
<%--<div id="breadcrumb">--%>
<%--&lt;%&ndash;<a href="index.html" class="tip-bottom" data-original-title="Go to Home"><i class="icon-home"></i> Home</a>&ndash;%&gt;--%>
<%--<a href="javascript:void(0)"--%>
<%--url="${pageContext.request.contextPath}/crm/getMyselfClientInfo.do"  class="m-pageChange tip-bottom">客户信息管理</a>--%>
<%--<a href="#" class="current">用户批量导入</a>--%>
<%--</div>--%>
<div class="container-fluid marginTop20">
    <div class="row-fluid topCircleBorder paddingTop10 paddingBottom10 marginBottom5">
        <form class="form-horizontal">
            <div class="control-group">
                <label class="control-label">导入模板下载</label>

                <!-- Button -->
                <div class="controls">
                    <button class="btn btn-primary" id="downLoadModel">下载</button>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">批量导入</label>

                <!-- File Upload -->
                <div class="controls">
                    <input class="input-file" id="fileInput" type="file">
                </div>
            </div>
        </form>
    </div>

    <div class="row-fluid">
        <table id="customerImportTable">
        </table>
        <div class="formLayOut bottomMargin20">
            批量操作 <input id="fromInput" class="smallInputText no-margin" type="text"> ~ <input id="toInput"
                                                                                              class="smallInputText no-margin"
                                                                                              type="text">
            <button type="button" class="btn btn-primary" id="putGongHai">放入公海
            </button>
        </div>
    </div>


</div>
<script src="${pageContext.request.contextPath}/resources/js/customer/customerImport.js"></script>
<script>
    $(function () {
        //页面数据初始化
        gotoPage(1);

        //下载链接
        $("#downLoadModel").click(function () {
            //TODO 现在链接
        });

        //TODO 文件上传

        $("#putGongHai").click(function () {
            var fromInput = $("#fromInput").val();
            var toInput = $("#toInput").val();
            //TODO 现在链接
            var url = "";
            var postData = {"fromInput": "fromInput", "toInput": "toInput"};
            postAjax(url, postData, putGongHaiSuccess);
        });

        var putGongHaiSuccess = function () {

        }

    });
</script>